package org.spring.springboot.app.sys.area.service;

import org.spring.springboot.app.sys.area.domain.po.SysAreaPO;
import org.spring.springboot.app.sys.area.domain.vo.*;
import org.spring.springboot.app.base.R;

import java.util.List;

/**
 * 逻辑接口类
 * <p>
 * Created by bysocket on 07/02/2017.
 */
public interface ISysAreaService {

    List<SysAreaPO> findAll();

    SysAreaPO find(String id);

    List<SysAreaPO> findPage(int pageNum, int pageSize);

    int save(SysAreaPO po);

    int update(SysAreaPO po);

    int delete(String id);

    List<SysAreaVO> findByParent(String parentId);

    R saveArea(SysAreaSaveInVO vo);

    R updateArea(SysAreaUpdateInVO vo);

    List<SysAreaQueryMiniVO> findAllMini(SysAreaQueryMiniSearchVO searchVO);
}
